package com.cgs.query.handler

import com.cgs.query.domain.QuerySource

/**
 * querySource查找器
 */
interface SourceFindHandler {

    /**
     * 查找数据源id
     * 项目名称、完整路径
     */
    fun findSourceIdByProjectNameAndWholeName(projectName: String, wholeName: String): String?

    /**
     * 查找数据源
     * 项目名称、完整路径
     */
    fun findSourceByProjectNameAndWholeName(projectName: String, wholeName: String): QuerySource?

    /**
     * 查询数据源
     * 通过项目名
     */
    fun findSourceByProjectName(projectName: String): QuerySource?

}